<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="bg/js/jquery-3.2.1.min.js" ></script>
<script type="text/javascript">
$.ajax({
    url: 'elevator_manage/addElevator',
    type: 'POST',
    dataType: 'json',
    data: {
    building_name:'test_building',
    zhuang_danyuan:'zhuang_danyuan',
    elevator_num:'elevator_num'
   },
    success: function(response){
      console.log("success");
      if(response.resultCode == 200){
          console.log("addElevator success");
     }
   },
  error:function(response){
       console.log("fail");
       if(response.resultCode==001){
         console.log("param is not found");
         }
     }
 })

</script>
</head>
<body>

</body>
</html>